<?php

class TaskHubDB {
	private static $username = "taskhub";
	private static $password = "Teste@123";
	private static $database = "TaskHub";
	private static $server = "mysql.taskhub.tester001.org";

	public static function Connect () {
		mysql_connect (self::$server, self::$username, self::$password);
		mysql_select_db ("taskhub");
	}

	public static function AddError ($error_message) {
		$escaped = mysql_real_escape_string ($error_message);
		mysql_query ("INSERT INTO Errors (Message) VALUES ('{$escaped}')");
	}
}

?>